Appname = go-iris
DockerImage = douxuefeng/go-iris:1.0

build:
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags="-w -s" -o ./$(Appname) -v
docker:
	docker build -t $(DockerImage) .
	docker run --name $(Appname) --net bash_app --restart always --net-alias $(Appname) -d -v $(shell pwd):/app  $(DockerImage)
destory:
	docker stop $(Appname) && docker rm $(Appname)
	docker rmi $(DockerImage)